﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace z_tool.config
{
    /// <summary>
    /// 工具类  烂代码的开始
    /// </summary>
    public class utils
    {

        /// <summary>
        /// 首字母大写
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static string toUpperFirst(string str)
        {
            if (string.IsNullOrEmpty(str)) return str;
            StringBuilder sb = new StringBuilder();
            sb.Append(str[0].ToString().ToUpper());
            if (str.Length > 1)
            {
                sb.Append(str.Substring(1));
            }
            return sb.ToString();
        }
    }
}
